package xuanzhen.reservation.dao;

import java.util.List;
import java.util.Map;

import xuanzhen.reservation.pojo.Reservation;

public interface ReservationMapper {
	/**
	 * 查
	 */
	List<Reservation> selectListByEntity(Reservation reservation) throws Exception;
	List<Reservation> selectListByMap(Map<String, Object> param) throws Exception;
	List<Reservation> selectLikeListByMap(Map<String, Object> param) throws Exception;
	/**
	 * 计数
	 * @param parameter
	 * @return
	 * @throws Exception
	 */
	int countUnDeul(Map<String,Object> parameter) throws Exception;
	
	int countLikes(Map<String,Object> parameter) throws Exception;
	/**
	 * 未处理消息查询
	 */
	List<Reservation> selectMessageListByMap(Map<String, Object> param) throws Exception;
	/**
	 * 删
	 */
	int delete(Reservation reservation) throws Exception;
	/**
	 * 改
	 */
	int updateReservation(Reservation reservation) throws Exception;
	/**
	 * 增
	 */
	void insertReservation(Reservation reservation) throws Exception;
	/**
	 * 查询用户非法取消数
	 */
	int selectCountIllegal(Reservation reservation) throws Exception;
	/**
	 * 查询用户非法取消数 配送员取消
	 */
	int selectCountIllegalChick(Reservation reservation) throws Exception;
	/**
	 * 查询少于的
	 * @param parameter
	 * @return
	 */
	List<Reservation> queryRedsCountLtListByMap(Map<String, Object> parameter);
}
